<?php
class u8_log{
  public static function log($id,$weight){
  	// $setmass="/setmass "
    self::write("/setmass ");
    self::write($id);
    self::write(" ");
    self::write($weight);
    self::write("\r\n");
  }

  public static function write($data){
    $file  = date('Y-m-d').".ini";
    file_put_contents($file, $data,FILE_APPEND);
  }
}
?>
